From: Jonas Dreßler Date: Sun, 23 Jun 2019 14:33:20 +0000 (+0200) Subject: polkitAgent: Reset dialog to defaults after cancelling polkit session X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~781^2^2~461 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5c7a701a68f584cbd95b3f15f85486a5b2ae6245;p=gnome-shell.git polkitAgent: Reset dialog to defaults after cancelling polkit session Since we don't know if polkit/PAM will request a password (emitting the "request" signal) or use another authentication method like a fingerprint after the current authentication failed, hide the password field and make the "Authenticate" button insensitive after cancelling the session, just like we do when creating the dialog. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/788 --- diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index e304c2a46..6367bcc8f 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -304,6 +304,10 @@ var AuthenticationDialog = GObject.registerClass({ this._session.disconnect(this._sessionShowInfoId); this._session = null; } + + this._passwordBox.hide(); + this._cancelButton.grab_key_focus(); + this._okButton.reactive = false; } _onUserChanged() {